package com.hzspace.advice.data;

/**
 * @Author: LiuHao
 * @Descirption:
 * @Date: 2020/2/28_21:12
 */

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ModelAttribute;

import java.util.HashMap;
import java.util.Map;

@ControllerAdvice
public class GlobalData {

    @ModelAttribute(value = "info")
    public Map map() {
        Map map = new HashMap();
        map.put("name", "LH");
        map.put("address", "www.hzspace.top");
        return map;
    }


}
